package com.xhsj.user.hr.userInfo.mapper;

import com.xhsj.user.hr.userInfo.query.UserDetailBaseQuery;
import org.apache.ibatis.annotations.Mapper;
import com.xhsj.user.hr.userInfo.entity.TbGlobalUserDetail;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
/**
 * <p>
 * 用户_详细信息 Mapper 接口
 * </p>
 *
 * @author liuqinghua
 * @since 2020-09-08
 */
@Mapper
public interface TbGlobalUserDetailMapper extends BaseMapper<TbGlobalUserDetail> {

    /**
     * 用户详细信息
     * @author liuqinghua
     * @date Sep 8, 2020 5:24:45 PM
     */
    UserDetailBaseQuery getUserDetailBaseQuery(@Param("userId") Long userId);

    /**
     * 获取用户银行卡号
     * @author 苏小林
     * @date 2020/11/5 13:48
     * @param: applyUserId
     * @return: java.lang.String
     */
    String getBankAccountByUserId(@Param("userId") Long userId);

    List<Long> getByIdCard(@Param("idCard") String idCard);

    List<Long> getByBankAccount(@Param("bankAccount") String bankAccount);
}
